import request from '@/utils/request'

// 获取权限列表
export function getPermissions(data) {
    return request({
      url: '/api/System/Permission',
      method: 'get',
      params: data
    })
}

// 添加权限
export function addPermission(data) {
    return request({
      url: '/api/System/Permission',
      method: 'post',
      params: data
    })
}

// 修改权限
export function updatePermission(data) {
  return request({
    url: '/api/System/Permission',
    method: 'put',
    params: data
  })
}

// 删除权限
export function deletePermission(data) {
  return request({
    url: '/api/System/Permission',
    method: 'delete',
    params: data
  })
}